Returns the sine of the value specified.
Syntax |
|---|
|
result = Sin( value ) |
Parameters |
||
|---|---|---|
|
value |
The value you want the sine of. |
|
Return Value |
||
|---|---|---|
|
Result |
The sine of value. |
|
Notes
The Sin function returns the sine of the angle (in radians) passed to it. If value is in degrees, multiply it by PI/180 to convert it to radians.
Examples
This example uses the Sin function to return the sine of a number.
Dim d As Double
Const PI=3.14159265358979323846264338327950
d=Sin(0.5) //returns 0.4794255
d=Sin(30*PI/180) //returns .5
Const PI=3.14159265358979323846264338327950
d=Sin(0.5) //returns 0.4794255
d=Sin(30*PI/180) //returns .5
See Also
Asin function.